Fixed issue showing correct number of dots beneath image gallery on mobile