added slideIn/slideOut before and after events