modified classes and pointers for new div's and images