added slide funcionality