Using sliding animation for various elements