Show slider based on pagination

Cleaned up css