removes unnecessary buttons for slider