Some code refactoring. Trying to implemented normal sliding from top to bottom