Reverting changes for sliding animation