"às tardes" is not accepted even though in a similar exercise it was.
In both cases, a behaviour was expressed, i.e. someone generally sleeps at that time of day.
Okay. I didn't know if "por" could be used in the same way here as it is used in Spanish, where someone might say "por la tarde" for in/through the afternoon.