slideIn, slideOut; code cleanup