An improved container cap has a structural design for preventing pills from spilling out of a container closed with the container cap. The container cap includes a movable cover that is extensible to enable indirect, two-step dispensing of pills, so that the pills come out of the container at a reduced speed and will not fall out accidentally.