fix bug where slides were repeating twice in mobile