Text this: How to reduce epidemic peaks keeping under control the time-span of the epidemic